#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "Exception.h"

#ifndef SHAREDWRITEFIFO_H_
#define SHAREDWRITEFIFO_H_

class SharedWriteFifo {
protected:
	std::string name;
	int fd;

public:
	SharedWriteFifo(std::string name);
	virtual ~SharedWriteFifo();
	void open_();
	ssize_t write_(const void* buffer,const ssize_t buffsize) const;
	void close_();
	void delete_() const;

};

#endif /* SHAREDWRITEFIFO_H_ */
